package com.hanamaki.oop.demo05;

public class Application {
    public static void main(String[] args) {

        Student student = new Student();
        // 不安全  暴露
//        System.out.println(student.stuName);

        // 设置属性的值
        student.setStuName("hanamaki");
        student.setAge(9);
        // 获得属性的值
        System.out.println(student.getStuName());
        System.out.println(student.getAge());

    }
}
